<?php
if ( !defined('IN_ADMINCP') || !defined('IN_SEC') ){
	exit('Access Denied.');
}


$setting = conf('template');
$templates = get_templates();

if ( is_post() ){
	$post = $_G['gp_skin'];
	$mixed = 'theme';
	if ( saveconfig('template', $mixed, $allow, $post) ){
		Session::Set('notice', '操作成功');
	}else{
		Session::Set('error', '操作失败');
	}
	$admincp->redirect('setting', 'template');
}

?>